﻿<UserControl x:Class="GraphDrawer.Source"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:local="clr-namespace:GraphDrawer"
	Width="780" Height="600" Background="White">
	<Grid x:Name="LayoutRoot">

		<Grid.RowDefinitions>
			<RowDefinition Height="100" />
			<RowDefinition Height="1*" />
			<RowDefinition Height="1*" />
			<RowDefinition Height="1*" />
		</Grid.RowDefinitions>

		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="200" />
			<ColumnDefinition Width="*" />
		</Grid.ColumnDefinitions>

		<Border BorderThickness="1" BorderBrush="Black" Grid.Row="0" Grid.Column="0">
			<TextBlock TextAlignment="Center" VerticalAlignment="Center" FontSize="20">
				Network source
			</TextBlock>
		</Border>
		<Border BorderThickness="1" BorderBrush="Black" Grid.Row="0" Grid.Column="1">
			<Grid>
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="150" />
					<ColumnDefinition Width="*" />
				</Grid.ColumnDefinitions>
				<Image Source="/Images/GraphDrawer/social-network.jpg" Grid.Column="0"></Image>
				<TextBlock TextAlignment="Center" VerticalAlignment="Center" TextWrapping="Wrap" Grid.Column="1">
					In this page we ask you to load or generate some network. You can do that by importing
					from an external file or generating using predefined generators.
				</TextBlock>
			</Grid>
		</Border>

		<Border BorderThickness="1" BorderBrush="Black" Grid.Row="1" Grid.Column="0">
			<Button Height="45" Width="158" Click="Import_Click"  Margin="0,0,0,10">
				<TextBlock TextWrapping="Wrap" TextAlignment="Center">
					Import community from external file
				</TextBlock>
			</Button>
		</Border>
		<Border BorderThickness="1" BorderBrush="Black" Grid.Row="1" Grid.Column="1">
			<TextBlock TextAlignment="Center" VerticalAlignment="Center">
				This option allows you to load a network file from external sources.
			</TextBlock>
		</Border>

		<Border BorderThickness="1" BorderBrush="Black" Grid.Row="2" Grid.Column="0">
			<Button Height="45" Width="158" Click="Generate_Click" Margin="0,0,0,10" >
				<TextBlock TextWrapping="Wrap" TextAlignment="Center">
					Generate example community with our help
				</TextBlock>
			</Button>
		</Border>
		<Border BorderThickness="1" BorderBrush="Black" Grid.Row="2" Grid.Column="1">
			<TextBlock TextAlignment="Center" VerticalAlignment="Center">
				This option allows you to generate a network using specific generators.
			</TextBlock>
		</Border>
		
		<Border BorderThickness="1" BorderBrush="Black" Grid.Row="3" Grid.Column="0">
			<Button Height="45" Width="158" Click="Database_Click" Margin="0,0,0,10" >
				<TextBlock TextWrapping="Wrap" TextAlignment="Center">
					Open network from our database
				</TextBlock>
			</Button>
		</Border>
		<Border BorderThickness="1" BorderBrush="Black" Grid.Row="3" Grid.Column="1">
			<TextBlock TextAlignment="Center" VerticalAlignment="Center">
				This option allows you to load a network from our database.
			</TextBlock>
		</Border>
	</Grid>
</UserControl>
